package com.reform.controller.expert;


import com.reform.res.Result;
import com.reform.service.IViewExpertLabelService;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;

import org.springframework.web.bind.annotation.RestController;

import java.sql.SQLException;

/**
 * <p>
 * VIEW 前端控制器
 * </p>
 *
 * @author mortale
 * @since 2021-08-13
 */
@Api(tags = "ViewExpertLabelController")
@RestController
@RequestMapping("/view-expert-label")
public class ViewExpertLabelController {

    @Autowired
    IViewExpertLabelService viewExpertLabelService;

    @ApiOperation(value = "获取全部专家信息", notes = "获取全部专家信息")
    @GetMapping("/getExpertLabels")
    public Result getExpertLabels() throws SQLException {
        return viewExpertLabelService.getExpertLabels();
    }

}
